package com.wz.boot.pojo;

import love.forte.simbot.api.message.events.PrivateMsg;

import java.util.ArrayList;
import java.util.List;

/**
 * 空间消息
 */
public class ZoneMsg {
    /**
     * 发送者的qq号
     */
    private String accountCode;
    /**
     * 发送者发送的消息队列
     */
    private List<PrivateMsg> privateMsgList = new ArrayList<>();

    public ZoneMsg(String accountCode) {
        this.accountCode = accountCode;
    }

    public ZoneMsg() {
    }

    public String getAccountCode() {
        return accountCode;
    }

    public void setAccountCode(String accountCode) {
        this.accountCode = accountCode;
    }

    public List<PrivateMsg> getPrivateMsgList() {
        return privateMsgList;
    }

    public void setPrivateMsgList(List<PrivateMsg> privateMsgList) {
        this.privateMsgList = privateMsgList;
    }
    public void pushPrivateMsg(PrivateMsg privateMsg){
        this.privateMsgList.add(privateMsg);
    }

    @Override
    public String toString() {
        return "ZoneMsg{" +
                "accountCode='" + accountCode + '\'' +
                ", privateMsgListSize=" + privateMsgList.size() +
                '}';
    }
}
